import App from './App';
import CustomTabbar from './components/CustomTabbar/index.vue';
import CustomTitleBar from './components/CustomTitleBar/index.vue';

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.config.productionTip = false;
App.mpType = 'app';
const app = new Vue({
	...App,
});

// 注册自定义组件
app.component('CustomTabbar', CustomTabbar);
app.component('CustomTitleBar', CustomTitleBar);

app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
export function createApp() {
	const app = createSSRApp(App);

	// 注册自定义组件
	app.component('CustomTabbar', CustomTabbar);
	app.component('CustomTitleBar', CustomTitleBar);

	return {
		app,
	};
}
// #endif